<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>梦蝶社区·帖子·[[${title}]]</title>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="/static/css/community.css">
    <script src="/static/jquery-3.4.1.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
</head>
<body>
<nav th:insert="~{navigation::nav}"></nav>
<div class="container-fluid main">
    <div class="row mypublish">
        <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
            <h4 th:text="${questionDTO.title}"></h4>
            <span>作者:[[${questionDTO.user.name}]]</span>|
            <span>发布时间:[[${#dates.format(questionDTO.gtmCreate, 'yyyy-MM-dd HH:mm')}]]</span>|
            <span>订阅数:[[${questionDTO.viewCount}]]</span>
            <hr>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" th:text="${questionDTO.description}"></div>
            <hr class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
            <a th:href="@{/publish/{id}(id = ${questionDTO.id})}" class="community-menu" th:if="${session.user!=null&&session.user.id==questionDTO.creator}">
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
                编辑
            </a>
        </div>

        <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <h4>发起人</h4>
                <div class="media">
                    <div class="media-left">
                        <a href="#">
                            <img class="media-object img-circle" th:src="${questionDTO.user.avatarUrl}">
                        </a>
                    </div>
                    <div class="media-body">
                        <h5 class="media-heading">
                            <span th:text="${questionDTO.user.name}"></span>
                        </h5>
                    </div>
                </div>
            </div>
            <hr class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <h4>相关问题</h4>
            </div>
        </div>
    </div>
</div><!-- /.container-fluid -->
</body>
</html>